using System.Collections.Generic;

namespace LiJ.Framework.Official.Basic.Mos
{
	/// <summary>
	/// 微信菜单按钮实体
	/// </summary>
	public class WxMenuButtonMo
	{
		/// <summary>   
		///   可空    二级菜单数组，个数应为1~5个
		/// </summary>  
		public List<WxMenuButtonMo> sub_button
		{
			get;
			set;
		}

		/// <summary>   
		///   必填    菜单的响应动作类型
		/// typeof(WxButtonType).ToEnumDirs()  可获取字典信息
		/// </summary>  
		public string type
		{
			get;
			set;
		}

		/// <summary>   
		///   必填    菜单标题，不超过16个字节，子菜单不超过60个字节
		/// </summary>  
		public string name
		{
			get;
			set;
		}

		/// <summary>   
		///   click等点击类型必须菜单KEY值，用于消息接口推送，不超过128字节
		/// </summary>  
		public string key
		{
			get;
			set;
		}

		/// <summary>   
		///   view类型必须网页链接，用户点击菜单可打开链接，不超过1024字节
		/// </summary>  
		public string url
		{
			get;
			set;
		}

		/// <summary>   
		///   media_id类型和view_limited类型必须调用新增永久素材接口返回的合法media_id
		/// </summary>  
		public string media_id
		{
			get;
			set;
		}
	}
}
